﻿<?php echo form_open('adminQuestions/deleteQuestions'); ?>
<h2 class="title">Одговори прашања</h2>
<table class="admin_table">
<tr><th >Прашање</th><th>Поставил</th><th>Одговорено</th><th>Избриши</th></tr>
<?php 
	foreach ($questions as $qst)
	{
		echo "<tr><td><a href='".site_url('adminQuestions/editQuestions/'.$qst->idQstPk)."'>".$qst->question."</a></td>";
		echo "<td>".$qst->name."</td>";
		if($qst->answer!=NULL)
		echo "<td><input type='checkbox' name=".$qst->idQstPk." checked disabled/></td>";
		else
			echo "<td><input type='checkbox' name=".$qst->idQstPk." disabled/></td>";
		echo "<td><input class='checkboxes' type='checkbox' name=".$qst->idQstPk." value=".$qst->idQstPk.". /></td></tr>";
	}
?>
<tr class="footer_table"> 
<td colspan="4"><input class="right" type="submit" name="submit" value="Избриши селектирани" /></td></tr>
</table>
<?php echo form_close(); ?>